<?php

namespace app\mobile\controller;

class Tender extends Base
{
/*

    public function index($navid)
    {
        if (!$navid) {
            $this->redirect($this->request->domain());
//            $this->error('参数错误');
        }
        //栏目详情start
        $cateInfo = db('nav')->where('id', $navid)->find();
        if (!$cateInfo) {
            $this->redirect($this->request->domain());
            //$this->error('栏目不存在');
        }
        //栏目详情end

        $this->assign('cateInfo', $cateInfo);

        //文章列表start
        $list = model($cateInfo['model'])->where($this->datas)->order('sort asc,id ASC')->paginate();
        $this->assign('list', $list);
        //文章列表end
        return $this->fetch($this->template . $cateInfo['templist']);

    }
    public function detailed($id)
    {
        //显示内容
        $model = $this->request->controller();

        $data = model($model)->where($this->datas)->find($id);
//        $cateInfo = db('nav')->where('model', $model)->where($this->datas)->find();
        $cateInfo = db('nav')->where('id', $this->request->param('navid'))->find();
        if (!$cateInfo) {
            $this->redirect($this->request->url(true));
            //$this->error('错误');
        }
        //更多页面
        !empty($data['cid']) ? $datas['cid'] = $data['cid'] : '';
        $datas['status'] = '1';
        $datas['lang']=cookie('think_var');
        $next = model($model)->getnext($id, $datas);
        $this->assign('data', $data);
        $this->assign('cateInfo', $cateInfo);
        $this->assign('next', $next);
        return $this->fetch($this->template . $cateInfo['temparticle']);
    }
*/
}

